package com.example.service.impl;



import com.example.dao.UsersDao;
import com.example.entity.Users;
import com.example.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class UserServiceimpl implements UsersService {
    @Resource
    UsersDao usersDao;


    @Override
    public ArrayList<Users> queryAll() {
        return usersDao.queryAll();
    }

    @Override
    public int deleteByID(Integer id) {
        return usersDao.deleteByID(id);
    }

    @Override
    public Users findById(Integer id) { return usersDao.findById(id); }

    @Override
    public int update(Users users) {
        return usersDao.update(users);
    }

    @Override
    public int insert(Users users) {
        return usersDao.insert(users);
    }
}
